Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serve_locally by default #722

Merged
merged 5 commits into from
May 21, 2019
Merged

serve_locally by default #722

merged 5 commits into from
May 21, 2019

Conversation

alexcjohnson
Copy link
Collaborator

@alexcjohnson alexcjohnson commented May 15, 2019

Flipping one of the remaining switches for #469

Closes #284
Closes https://github.com/plotly/dash-core/issues/10

# pylint: disable=no-init, too-few-public-methods
class config:
infer_from_layout = True
serve_locally = False
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The way we did this before, despite the fact that Scripts was instantiated, Scripts.config was a singleton. Mostly this is OK, dunno if there will ever be a reason to put two Scripts instances in one Python session, but it caused our test cases to be coupled to each other. I had to change this to an instance when I took out all the otherwise superfluous overrides in our test cases.

@@ -48,6 +48,7 @@ def test_external(self):
)
app.layout = dcc.Markdown()
app.scripts.config.serve_locally = False
app.scripts.config.xxx = 123
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hun?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Senator, I do not recall.
c096aa1

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw it at the time and had assumed it was to test for acceptance of randomly-named config keys :)

Copy link
Contributor

@Marc-Andre-Rivet Marc-Andre-Rivet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃

@Marc-Andre-Rivet
Copy link
Contributor

diffs look like noise.. 🙄

@alexcjohnson alexcjohnson merged commit 0ffad11 into master May 21, 2019
@alexcjohnson alexcjohnson deleted the serve_locally branch May 21, 2019 18:04
@alexcjohnson alexcjohnson mentioned this pull request Jun 7, 2019
5 tasks
HammadTheOne pushed a commit to HammadTheOne/dash that referenced this pull request May 28, 2021
HammadTheOne pushed a commit to HammadTheOne/dash that referenced this pull request May 28, 2021
HammadTheOne pushed a commit that referenced this pull request Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

proposal. Set serve_locally = True by default
3 participants